﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace V5_EShop._Template.Default
{
    public partial class logout : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            HttpCookie cookie1 = Request.Cookies["membername"];
            if (cookie1 != null)
            {
                cookie1.Expires = DateTime.Now.AddMinutes(-1.0);
                Response.Cookies.Add(cookie1);
            }
            HttpCookie cookie2 = Request.Cookies["memberid"];
            if (cookie2 != null)
            {
                cookie2.Expires = DateTime.Now.AddMinutes(-1.0);
                Response.Cookies.Add(cookie2);
            }
            Response.Redirect("/");
        }
    }
}
